package Service.impl;

import Service.IPayWayService;
import dao.IPayWayDao;
import dao.impl.PayWayDaoImpl;
import pojo.PayWay;

import java.util.List;

public class PayWayServiceImpl implements IPayWayService {
    private IPayWayDao payWayDao=new PayWayDaoImpl();
    @Override
    public void addPayWay(PayWay payWay) {
        payWayDao.addPayWay(payWay);
    }

    @Override
    public void updatePayWay(PayWay payWay) {
        payWayDao.updatePayWay(payWay);
    }

    @Override
    public List<PayWay> findAll() {
        return payWayDao.findAll();
    }
}
